<?php
namespace Admin\Model;
use Think\Model\ViewModel;

class OrderGoodViewModel extends ViewModel
{
    public $viewFields = array(

        'order' => array(
            'time','id',
            '_as' => 'my_order',
            '_type' => 'LEFT'
        ),
        'order_good' => array(
            'good_id','num','goods_price',
            '_on' => 'my_order.id = order_good.order_id' ,
            '_type' => 'LEFT'
        ),
    );
}

